<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/12
 * Time: 16:47
 */

namespace app\common\model;

class Edition extends \think\Model
{
    /**
     * 查询列表显示数据
     */
    public function getList($page){
        $model = new Edition();
        $list = $model
            ->order('edition_id desc')
            ->paginate($page);
        return $list;
    }
    /**
     * 新增
     */
    public function add($data){
        $model = new Edition();
        $num = $model->save($data);
        return $num;
    }
}